package com.gonsin.gmessage.logic.websocket;

/**
 * webSocket指令
 */
public class WebSocketCmd {

    public static class Cmd {
//        public static final String MESSAGE = "message";         // 站内信
//        public static final String DINGDING = "ding_talk";      // 钉钉拉取人员的消息
//        public static final String PAY = "pay";                 // 支付返回
//        public static final String QR_CODE = "qrCode";          // 微信扫码事件
        public static final String CLIENT = "client";           // 前端发送
        public static final String SYSTEM = "system";           // 系统消息
        public static final String DEVICE = "device";           // 系统消息
    }


    public static class SubCmd {

        // client 的消息
        public static final String REGISTER = "register";       // 注册指令

        public static final String REGISTER_USER = "register_user";       // 注册用户
        public static final String UNREGISTER = "unregister";       // 注销指令
        public static final String HEART = "heart";             // 心跳指令


        // system 的消息
        public static final String LOG = "log";             // 日志
        public static final String OTHER_CMD = "other_cmd";             // 其他指令情况
        public static final String EXCEPTION = "exception";             // 服务器内发生的异常

    }

}

